﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.Production.Domain
{
    /// <summary>
    /// 物料清单子件信息
    /// </summary>
    public class SubComponentModel
    {
        [Key]
        public int SubComponentId { get; set; }

        /// <summary>
        /// 主键id
        /// </summary>
        public int MaterialListId { get; set; }
        /// <summary>
        /// 序号（自动生成）
        /// </summary>
        public int Index { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 产品比例
        /// </summary>
        public double Ratio { get; set; }

        /// <summary>
        /// 需求数量（自动计算）
        /// </summary>
        public double RequiredQuantity { get; set; }

        /// <summary>
        /// 产品角色（必填）
        /// </summary>
        public string ProductRole { get; set; }

        /// <summary>
        /// 工艺流程
        /// </summary>
        public string ProcessFlow { get; set; }

        /// <summary>
        /// 耗损率百分比
        /// </summary>
        public double DefectRate { get; set; }

        /// <summary>
        /// 领料方式
        /// </summary>
        public string PickMethod { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}
